Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup batches inside the engine if they were not released explicity before disconnection #8341

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

dyemanov
Copy link
Member

@dyemanov dyemanov commented Dec 4, 2024

This avoids a resource leak (it's mostly about TempSpace). Easy to reproduce - just open a batch, push a significant number of records through the batch and disconnect. You'll get an assertion fb_assert(m_tempCacheUsage == 0); inside ~GlobalObjectHolder() and may also notice temporary files still existing.

Init/cleanup logic of JBatch is changed to match JResultSet and JReplicator.

…y before disconnection. This avoids a resource leak (it's mostly about TempSpace).
@dyemanov dyemanov merged commit c60acb0 into master Dec 5, 2024
48 checks passed
@dyemanov
Copy link
Member Author

dyemanov commented Dec 5, 2024

It it worth backporting into v4/v5?

@dyemanov dyemanov deleted the batch-cleanup branch December 10, 2024 08:58
dyemanov added a commit that referenced this pull request Dec 10, 2024
…y before disconnection. This avoids a resource leak (it's mostly about TempSpace). (#8341)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment